package com.haircut.project.dao.finance;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.haircut.project.model.finance.FinanceDept;
import com.haircut.project.vo.finance.FinanceReqVo;
import com.haircut.project.vo.finance.FinanceResVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FinanceDeptMapper extends BaseMapper<FinanceDept> {
    /**
     * 查询和下游对账的数据
     * @param reqVo
     * @return
     */
    Page<FinanceResVo> findSunDeptPage(IPage<?> pageReq,@Param("reqVo") FinanceReqVo reqVo);

    /**
     * 查询和上游店铺对账的查询
     * @param reqVo
     * @return
     */
    Page<FinanceResVo> findParentDeptPage(IPage<?> pageReq,@Param("reqVo") FinanceReqVo reqVo);
}
